$(document).ready(function () {
    $(document).on("click", "[name=submit]", function () {
        $.post("/root/rootLogin", {
            username: $("#username").val(),
            password: $("#password").val()
        }, function (data) {
            console.log(data);
        });
    });
});